package net.topicopedia.servlets;
import java.io.IOException;

import javax.servlet.http.*;

import com.google.appengine.labs.repackaged.org.json.JSONException;

import net.topicopedia.fixtures.Fixtures;

@SuppressWarnings("serial")
public class Topicopedia_dev_nextServlet extends HttpServlet {
	public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
		resp.addHeader("Access-Control-Allow-Origin", "*");
		resp.setContentType("text/plain");
		
		Fixtures fixtures = new Fixtures();
		Boolean categories = fixtures.createCategories();
		try {
			Boolean tags = fixtures.createTags ();
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		resp.getWriter().println( "categories created" );
		resp.getWriter().println( "tags created" );
		
	}
}
 